package com.dhcc.DRGsHosp.core.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.openkoala.koala.commons.domain.KoalaLegacyEntity;

/**
 * @title :Expected.java
 * @description :预期管理
 * @author :liqingyang
 * @date :2015年4月2日
 * @version :1.0
 * @copyright :DHCC 2013-2014
 */
@Entity
@Table(name = "T_EXPECTED", schema = "DRGs")
public class Expected extends KoalaLegacyEntity {

	private static final long serialVersionUID = -2700241427681303048L;

	// 预期代码
	@Id
	@Column(name = "EXPECTED_CODE", nullable = false)
	private String expectedCode;
	
	//预期名称
	@Column(name = "EXPECTED_NAME")
	private String expectedName;

	// ParDRG代码
	@Column(name = "PARDRG_CODE")
	private String pardrgCode = "DRG_DHCC";

	// Par专业组组代码
	@Column(name = "PARDEPGROUP_CODE")
	private String parDepGroupCode = "DRG_DHCC";

	// Par科室代码
	@Column(name = "PARDEP_CODE")
	private String parDepCode = "DRG_DHCC";

	// 类型,I:ideal理想,E:expect预期,ES:estimated估计,T:target目标
	@Column(name = "EXPECTED_TYPE")
	private String expectedType;

	// 制定预期日期
	@Column(name = "EXPECTED_DATE")
	private Date expectedDate = new Date();
	
	// MDC
	@Column(name = "PARMDC_CODE")
	private String parMDCCode = "DRG_DHCC";
	
	// ADRG
	@Column(name = "PARADRG_CODE")
	private String parADRGCode = "DRG_DHCC";

	/**
	 * 
	 */
	public Expected() {
		super();
	}

	/**
	 * @param expectedCode
	 * @param pardrgCode
	 * @param parDepGroupCode
	 * @param parDepCode
	 * @param expectedType
	 * @param expectedDate
	 */
	public Expected(String expectedCode, String pardrgCode,
			String parDepGroupCode, String parDepCode, String expectedType,
			Date expectedDate) {
		super();
		this.expectedCode = expectedCode;
		this.pardrgCode = pardrgCode;
		this.parDepGroupCode = parDepGroupCode;
		this.parDepCode = parDepCode;
		this.expectedType = expectedType;
		this.expectedDate = expectedDate;
	}

	public String getExpectedCode() {
		return expectedCode;
	}

	public void setExpectedCode(String expectedCode) {
		this.expectedCode = expectedCode;
	}

	public String getExpectedName() {
		return expectedName;
	}

	public void setExpectedName(String expectedName) {
		this.expectedName = expectedName;
	}

	public String getPardrgCode() {
		return pardrgCode;
	}

	public void setPardrgCode(String pardrgCode) {
		this.pardrgCode = pardrgCode;
	}

	public String getParDepGroupCode() {
		return parDepGroupCode;
	}

	public void setParDepGroupCode(String parDepGroupCode) {
		this.parDepGroupCode = parDepGroupCode;
	}

	public String getParDepCode() {
		return parDepCode;
	}

	public void setParDepCode(String parDepCode) {
		this.parDepCode = parDepCode;
	}

	public String getExpectedType() {
		return expectedType;
	}

	public void setExpectedType(String expectedType) {
		this.expectedType = expectedType;
	}

	public Date getExpectedDate() {
		return expectedDate;
	}

	public void setExpectedDate(Date expectedDate) {
		this.expectedDate = expectedDate;
	}

	public String getParMDCCode() {
		return parMDCCode;
	}

	public void setParMDCCode(String parMDCCode) {
		this.parMDCCode = parMDCCode;
	}

	public String getParADRGCode() {
		return parADRGCode;
	}

	public void setParADRGCode(String parADRGCode) {
		this.parADRGCode = parADRGCode;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.dayatang.domain.Entity#getId()
	 */
	@Override
	public Serializable getId() {
		// TODO Auto-generated method stub
		return expectedCode;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.openkoala.koala.commons.domain.KoalaBaseEntity#businessKeys()
	 */
	@Override
	public String[] businessKeys() {
		// TODO Auto-generated method stub
		return null;
	}

}
